
package edu.weber.bookstore.models;

import edu.weber.bookstore.database.Book;
import java.util.HashMap;
import java.util.Map;

/**
 * 
 * 
 */
public class BookViewModel extends ViewModel
{
	private Book _book;
	
	/**
	 * Constructor for the data in the book view page
	 * @param book book to be displayed
	 */
	public BookViewModel(Book book)
	{
		_book = book;
	}
	
	@Override
	public Map<String, Object> getMap()
	{
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("book", _book);
		
		map.putAll(super.getMap());
		return map;
	}
}
